<table class="table table-striped table-bordered table-hover">

    <tr align="center">

    <th width="160" height="40">A&ccedil;&otilde;es</th>
    <th>Título</th>
    <th>Mensagem</th>
    <th width="100">Data</th>
    <th width="40">Tipo</th>
    </tr>

    <?php

    $sql = "SELECT * FROM safety WHERE status='1' ORDER BY saf_data DESC";
    $res = sql($sql);

    while($linha = mysql_fetch_array($res)) {

    ?>

    <tr>

    <td height="40" align="center">

        <input name="excluir[]" type="checkbox" value="<?=$linha['saf_id'];?>"/><i class="icon-trash"></i> Excluir&nbsp;&nbsp;|&nbsp;
        <a href="?pag=safety_alt&amp;saf_id=<?=$linha['saf_id'];?>"><i class="icon-pencil"></i> Editar</a>
    </td>
    <td>
    <?php
    echo $linha['saf_nome'];
    ?>
    </td>
    <td>
	    <?php echo $linha['saf_msg'];?>
    </td>
    <td>
        <?php 
        echo todatabr($linha['saf_data']);
        ?>
    </td>
    <td>
        <?php 
        echo $linha['saf_tipo'];
        ?>
    </td>    
    </tr>

    <?
    } 
    ?>
</table>